<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <link rel="icon" href="/favicon.ico" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Vite App</title>
    </head>
    <body onload="noright(document.body);">
        <div id="app"></div>
        <script type="module" src="/src/main.ts"></script>
        <script>
            function noright(obj) {
                if (obj) {
                    obj.oncontextmenu = function () {
                        return false;
                    };
                    obj.ondragstart = function () {
                        return false;
                    };
                    obj.onselectstart = function () {
                        return false;
                    };
                    // obj.onselect = function () {
                    //     obj.selection.empty();
                    // };
                    obj.oncopy = function () {
                        obj.selection.empty();
                    };
                    obj.onbeforecopy = function () {
                        return false;
                    };
                }
            }
        </script>
    </body>
</html>
